﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShanNiang.Mvvm.ViewModels
{
    /// <summary>
    /// 商品对象
    /// </summary>
    public partial class ItemViewModel : ObservableObject
    {
        public ItemViewModel()
        {

        }
        /// <summary>
        /// 商品Id
        /// </summary>
        [ObservableProperty]
        private Guid _id;
        /// <summary>
        /// 条码
        /// </summary>
        [ObservableProperty]
        private string? _barcode;
        /// <summary>
        /// 箱规
        /// </summary>
        [ObservableProperty]
        private int _boxSize;
        /// <summary>
        /// 分类名
        /// </summary>
        [ObservableProperty]
        private string? _categoryName;
        /// <summary>
        /// 图片url
        /// </summary>
        [ObservableProperty]
        private string? _imageUrl;
        /// <summary>
        /// 商品名称
        /// </summary>
        [ObservableProperty]
        private string? _name;
        /// <summary>
        /// 商品规格
        /// </summary>
        [ObservableProperty]
        private string? _specification;
        /// <summary>
        /// 今日本品装箱数
        /// </summary>
        [ObservableProperty]
        private int _todayPacking;
        ///// <summary>
        ///// 父亲级对象
        ///// </summary>
        //public PackingViewModel? PackingViewModel { get; private set; }
    }
}
